package Brettspiel;

import java.io.*;

public abstract class Player {
	
	private String name, color;
	
	public Player(String color){
	    this.color = color;
	    BufferedReader in;
		in = new BufferedReader(new InputStreamReader(System.in));
		try{
			System.out.println("Spieler eingeben: ");
			setName(in.readLine());
		}catch(IOException e) {
			e.printStackTrace();
		}
	}
	public String getColor() {
        return color;
    }
    public void setName(String name){
		this.name = name;
	}
	public String getName(){
		return name;
	}
	public String toString(){
		return "Spieler: " +name;
	}
}